/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "外协管理",TableName = "MesOgs")]
    public partial class MesOgs:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OgId { get; set; }

       /// <summary>
       ///外协编号
       /// </summary>
       [Display(Name ="外协编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string OgNo { get; set; }

       /// <summary>
       ///生产编号
       /// </summary>
       [Display(Name ="生产编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ProductionNo { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Ogunit { get; set; }

       /// <summary>
       ///预计日期
       /// </summary>
       [Display(Name ="预计日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? OgexpectedTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Ognotes { get; set; }

       /// <summary>
       ///总价格
       /// </summary>
       [Display(Name ="总价格")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgSumPrice { get; set; }

       /// <summary>
       ///订单编码
       /// </summary>
       [Display(Name ="订单编码")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string OgorderNo { get; set; }

       /// <summary>
       ///品名
       /// </summary>
       [Display(Name ="品名")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string OgProduct { get; set; }

       /// <summary>
       ///总数
       /// </summary>
       [Display(Name ="总数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgSum { get; set; }

       /// <summary>
       ///已发货数量
       /// </summary>
       [Display(Name ="已发货数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgShipped { get; set; }

       /// <summary>
       ///已收到合格数
       /// </summary>
       [Display(Name ="已收到合格数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgReceived { get; set; }

       /// <summary>
       ///不合格数
       /// </summary>
       [Display(Name ="不合格数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgUnqualified { get; set; }

       /// <summary>
       ///本次数量
       /// </summary>
       [Display(Name ="本次数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgthisNum { get; set; }

       /// <summary>
       ///币式Id
       /// </summary>
       [Display(Name ="币式Id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? MoneyId { get; set; }

       /// <summary>
       ///收发货
       /// </summary>
       [Display(Name ="收发货")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgReceivingshipping { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? OgDateTime { get; set; }

       /// <summary>
       ///发货时间
       /// </summary>
       [Display(Name ="发货时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? Ogdeliverytime { get; set; }

       /// <summary>
       ///收货人
       /// </summary>
       [Display(Name ="收货人")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? User_Id { get; set; }

       /// <summary>
       ///订单Id
       /// </summary>
       [Display(Name ="订单Id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Or_id { get; set; }

       /// <summary>
       ///产品编号
       /// </summary>
       [Display(Name ="产品编号")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Pro_no { get; set; }

       /// <summary>
       ///结算状态
       /// </summary>
       [Display(Name ="结算状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Ogsettlement { get; set; }

       /// <summary>
       ///逾期天数
       /// </summary>
       [Display(Name ="逾期天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OgovDays { get; set; }

       
    }
}